﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class student_shenfen : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack){
            Label1.Text = Session["name"].ToString();
        }
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Session["name"] == null && Session["ID"] == null)
        {

            Response.Redirect("~/login.aspx");
        }
        else {
            Session.Remove("name");
            Session.Remove("ID");
            Response.Redirect("~/login.aspx");
        }
    }
}